#include "stdafx.h"
#include "VSCtxMenuFixApp.h"

#define MAX_LOADSTRING 250

static LPWSTR g_lpAppTitle;
static LPWSTR g_lpStartQuestion;
static HMENU g_hTrayMenu;

LPWSTR CMyResources::GetAppTitle()
{
    if (g_lpAppTitle == NULL)
    {
        g_lpAppTitle = new WCHAR[MAX_LOADSTRING];
        LoadString(g_hInst, IDS_APP_TITLE, g_lpAppTitle, MAX_LOADSTRING);
    }

    return g_lpAppTitle;
}

LPWSTR CMyResources::GetStartQuestion()
{
    if(g_lpStartQuestion == NULL)
    {
        g_lpStartQuestion = new WCHAR[MAX_LOADSTRING];
        LoadString(g_hInst, IDS_START_QUESTION, g_lpStartQuestion, MAX_LOADSTRING);
    }

    return g_lpStartQuestion;
}

HMENU CMyResources::GetTrayMenu()
{
    if (g_hTrayMenu == NULL)
    {
        HMENU hTrayMenu = LoadMenu(g_hInst, MAKEINTRESOURCE(IDC_TRAYMENU));
        g_hTrayMenu = GetSubMenu(hTrayMenu, 0);
    }

    return g_hTrayMenu;
}
